package com.diyizu.dao.impl;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;

public class ReadLogDao {

    public ArrayList<String> getLog(){
        String line = null;
        ArrayList<String> list = new ArrayList<>();
        {
            try {
                BufferedReader br = new BufferedReader(new FileReader("information_system\\log4j-log.log"));
                while ((line=br.readLine())!=null){
                    list.add(line);
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return list;

    }




}
